import request from '@/utils/request';

export async function queryClassroom(params) {
  return request('/api/classroom', {
    params
  });
}

export async function removeClassroom(params) {
  return request('/api/classroom', {
    method: 'DELETE',
    data: {
      ...params
    },
  });
}

export async function addClassroom(params) {
  return request('/api/classroom', {
    method: 'POST',
    data: {
      ...params
    },
  });
}

export async function updateClassroom(params) {
  return request('/api/classroom', {
    method: 'put',
    data: {
      ...params
    },
  });
}
